package org.ytor.core.sysapi.dict.req;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ytor.common.util.bean.Beans;
import org.ytor.core.model.BaseReq;
import org.ytor.core.sysapi.dict.model.SysDict;

/**
 * created by yangtong on 2025/4/8 16:55:15
 * <br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDictReq extends BaseReq<SysDict, String> {

    private String id;

    /**
     * 字典名称
     */
    private String dictName;

    /**
     * 字典编码，唯一
     */
    private String dictCode;

    /**
     * 序号
     */
    private Integer sortOrder;

    /**
     * 备注
     */
    private String remark;

    @Override
    public SysDict toEntity() {
        return Beans.copyProperties(this, SysDict.class);
    }
}
